<template>
    <div class="like">
        <div class="py-container">
            <div class="title">
                <h3 class="fl">轻聊FM</h3>
                <a href="javascript:;" class="fr tip changeBnt">换一换</a>
            </div>
            <div class="bd">
                <ul class="favourate">
                    <li>
                        <img src="./images/fm_01.png" alt=""/>
                    </li>
                    <li>
                        <img src="./images/fm_02.png" alt=""/>
                    </li>
                    <li>
                        <img src="./images/fm_03.png" alt=""/>
                    </li>
                    <li>
                        <img src="./images/fm_02.png" alt=""/>
                    </li>
                    <li>
                        <img src="./images/fm_04.png" alt=""/>
                    </li>
                    <li>
                        <img src="./images/fm_03.png" alt=""/>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "Like"
    }
</script>

<style lang="less" scoped>
    /*style书写组建的样式*/
    .like {
        margin-top: 15px;

        .py-container {
            width: 1200px;
            margin: 0 auto;

            .title {
                overflow: hidden;

                .fl {
                    float: left;
                    font-size: 20px;
                    line-height: 30px;
                }

                .fr {
                    float: right;
                    background-image: url(./images/icons.png);
                    width: 66px;
                    height: 25px;
                    background-position: 182px -104px;
                    line-height: 30px;
                    font-size: 12px;
                    font-weight: 400;
                    color: #666;
                    text-decoration: none;
                }
            }

            .bd {
                .favourate {
                    border: 1px solid #e4e4e4;
                    overflow: hidden;
                    padding: 0 10px;
                    box-sizing: border-box;
                    display: flex;

                    li {
                        height: 250px;
                        margin: 0 -1px;
                        overflow: hidden;
                        background: #fff;
                        position: relative;
                        width: 16.667%;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        cursor: pointer;

                        img {
                            width: 175px;
                            height: 240px;
                            transition: all 400ms;

                            &:hover {
                                opacity: 0.8;
                                transform: scale(1.1)
                            }
                        }
                    }
                }
            }
        }
    }
</style>